<style type="text/css">
    .remark{padding-top:4px;word-break:normal;width:auto;display:block; white-space:pre-wrap;word-wrap:break-word;overflow: hidden}
    table{
        width: 80%;
    }
    tr{
        width: 85%;
    }
    .div-label{
        width:155px;
    }
    .div-item{
        width:95%
    }
    td{
        width:50%
    }

</style>
<script type="text/javascript">
    //初始化页面
    var keyId = (getUrlParam("keyId", url));
    fy_api.load_template({
        controller: $("#saveForm").attr("templateParam", "keyId=" + keyId),
        initValue: true,
        loading: true,
        loaded: init
    });

    function init(){
        //设置状态
        var auditStatus = $("#auditStatus").text();
        if(auditStatus == 1){
            $("#auditStatus").text("审核通过");
        }else if(auditStatus == 2){
            $("#auditStatus").text("驳回");
        }else{
            $("#auditStatus").text("未审核");
        }
    }

    function showPortrait(url){
        if(undefined != url && 'undefined' != url && null != url && 'null' != url){
            $("#portrait").attr("src",url);
        }
        var winoption = {
            title:"证件照",
            collapsible:false,
            minimizable:false,
            maximizable:false,
            modal:true,
            onBeforeClose:function(){
                $("#portrait").attr("src",'');
            }
        };
        $('#win_portrait').window(winoption);
        $('#win_portrait').window('open');
    }
</script>
<form id="saveForm" templateUrl="vipmember/get.do">
    <table style="margin: 10px auto;border: 1px solid darkgrey;padding: 10px">
        <tr>
            <td>
                <div class="div-item">
                    <div class="div-label">名称：</div>
                    <span class="div-item-info">111</span>
                </div>
            </td>
            <td>
                <div class="div-item">
                    <div class="div-label">一卡通号：</div>
                    <span class="div-item-info">${content.vipNo}</span>
                </div>
            </td>
        </tr>
        <tr>
            <td>
                <div >
                    <div class="div-label">手机：</div>
                    <span class="div-item-info">${content.mobile}</span>
                </div>
            </td>
            <td>
                <div >
                    <div class="div-label">电话：</div>
                    <span class="div-item-info">${content.phone}</span>
                </div>
            </td>
        </tr>
        <tr>
            <td>
                <div >
                    <div class="div-label">公司：</div>
                    <span class="div-item-info">${content.company}</span>
                </div>
            </td>
            <td>
                <div >
                    <div class="div-label">地址：</div>
                    <span class="div-item-info">${content.address}</span>
                </div>
            </td>
        </tr>
        <tr>
            <td>
                <div >
                    <div class="div-label">租户ID：</div>
                    <span class="div-item-info">${content.code}</span>
                </div>
            </td>
            <td>
                <div >
                    <div class="div-label">省：</div>
                    <span class="div-item-info">${content.province}</span>
                </div>
            </td>
        </tr>
        <tr>
            <td>
                <div >
                    <div class="div-label">市：</div>
                    <span class="div-item-info">${content.city}</span>
                </div>
            </td>
            <td>
                <div >
                    <div class="div-label">运费价格方案编码：</div>
                    <span class="div-item-info">${content.shippingPlanCode}</span>
                </div>
            </td>
        </tr>
        <tr>
            <td>
                <div >
                    <div class="div-label">微信openid：</div>
                    <span class="div-item-info">${content.openId}</span>
                </div>
            </td>
            <td>
                <div >
                    <div class="div-label">默认物流公司：</div>
                    <span class="div-item-info">${content.defaultTenant}</span>
                </div>
            </td>
        </tr>
        <tr>
            <td>
                <div class="div-item">
                    <div class="div-label">状态：</div>
                    <span class="div-item-info" id="auditStatus">${content.auditStatus}</span>
                </div>
            </td>
            <td>
                <div class="div-item">
                    <div class="div-label">所属区域行政区划编码：</div>
                    <span class="div-item-info">${content.areaCode}</span>
                </div>
            </td>
        </tr>
        <tr>
            <td>
                <div class="div-item">
                    <div class="div-label">身份证正面照：</div>
                    <span class="div-item-info"><a style="color:blue" href="javascript:void(0)" onclick="showPortrait('${content.idFrontPic}')">查看</a></span>
                </div>
            </td>
            <td>
                <div class="div-item">
                    <div class="div-label">身份证反面照：</div>
                    <span class="div-item-info"><a style="color:blue" href="javascript:void(0)" onclick="showPortrait('${content.idBackPic}')">查看</a></span>
                </div>
            </td>
        </tr>
        <tr>
            <td>
                <div class="div-item">
                    <div class="div-label">手持身份证照：</div>
                    <span class="div-item-info"><a style="color:blue" href="javascript:void(0)" onclick="showPortrait('${content.idHandPic}')">查看</a></span>
                </div>
            </td>
        </tr>
    </table>
</form>
<div class="form-buttons">
    <a id="btnBack" class="easyui-linkbutton c2" href="#" iconCls="icon-undo" onClick="parent.j_closeWin();">返回</a>
</div>

<div id="win_portrait" class="easyui-window" closed="true" style="width:400px;height:260px;">
    <img id="portrait" src="" style="width: 95%;height: 90%" alt="未发现证件照" title="证件照"/>
</div>